<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>MVVM实现原理</title>
</head>

<body>
    <div id="app">
        <h2>{{user.name}}--{{user.age}}</h2>
        <h2>{{user.age}}</h2>
        <h3 v-text='user.name'></h3>
        <h4 v-text='msg'></h4>
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ul>
        <div v-html='htmlStr'></div>
        <div v-html='user.depict'></div>
        <input type="text" v-model='msg'>
    </div>
    <script src="js/MVue.js"></script>
    <script src="js/Observer.js"></script>
    <script>
        let vm = new MVue({
            el: '#app',
            data: {
                user: {
                    name: "tom",
					age:18,
					depict:"<h3>hello MVVM</h3>",
                },
                msg: 'MVVM实现原理',
                htmlStr:"<h3>hello MVVM1</h3>",

            },
  

        })
    </script>
</body>

</html>
